Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@types/aria-query
Advanced tools
TypeScript definitions for aria-query
The @types/aria-query package provides TypeScript type definitions for aria-query, a library that maps ARIA roles, states, and properties to their respective values and types. This package is essential for developers using TypeScript to build accessible web applications, ensuring type safety and autocomplete features for ARIA-related code.
Type Definitions for ARIA Roles
Provides TypeScript types for querying details about ARIA roles, such as 'button', 'checkbox', etc., including their required states and properties.
import { ARIARoleDefintionMap } from 'aria-query';
const roleMap: ARIARoleDefintionMap = require('aria-query').roles;
console.log(roleMap['button']);
Type Definitions for ARIA States and Properties
Offers TypeScript types for ARIA states and properties, enabling developers to access information about each state or property, such as type, values, and applicability.
import { ARIAStateMap } from 'aria-query';
const stateMap: ARIAStateMap = require('aria-query').states;
console.log(stateMap['aria-checked']);
Provides TypeScript definitions for React, similar to how @types/aria-query provides for aria-query. While @types/react focuses on React-specific types, @types/aria-query focuses on ARIA roles, states, and properties for accessibility.
The core TypeScript language itself, which includes support for JSX and other typing features. TypeScript enhances JavaScript with types and is similar to @types/aria-query in that it provides type safety, but it is more general and not focused solely on ARIA attributes.
npm install --save @types/aria-query
This package contains type definitions for aria-query (https://github.com/A11yance/aria-query#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aria-query.
These definitions were written by Sebastian Silbermann.
FAQs
TypeScript definitions for aria-query
The npm package @types/aria-query receives a total of 10,358,740 weekly downloads. As such, @types/aria-query popularity was classified as popular.
We found that @types/aria-query demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.